/**
 * 其他模块路由
 */
module.exports = app => {
  const { router, controller } = app;

  /**
   * 任务优先级
   */
  router.get('/api/v1/task_prioritys/list', controller.v1.taskPrioritys.findAll);
  
  /**
   * 站内信
   */
  router.get('/api/v1/messages/list', controller.v1.messages.findAll);
  router.post('/api/v1/messages', controller.v1.messages.create);
  router.put('/api/v1/messages/:id/read', controller.v1.messages.markAsRead);
  
  /**
   * 文件上传
   */
  router.post('/api/v1/upload', controller.v1.upload.single);
  router.post('/api/v1/upload/multiple', controller.v1.upload.multiple);
};
